package com.seven.commons;

/**
 * @工程名:common-utils
 * @作者: sevenDay
 * @时间: 2019/6/13 15:35
 * @描述:
 */

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author sevenDay
 * @classname BusinessPublishItemExcelParams
 * @description: 描述TODO
 * @date 2018/7/13
 */
@Data
public class BusinessPublishItemExcelParams implements Serializable {

    @Excel(name = "产品ERP编号")
    private String productRawId;

    @Excel(name = "产品名称(必填)")
    @NotNull(message = "产品名称不能为空")
    private String name;

    @Excel(name = "批准文号(必填)")
    @NotNull
    private String allowNo;

    @Excel(name = "生产厂家(必填)")
    @NotNull
    private String factory;

    @Excel(name = "规格(必填)")
    @NotNull
    private String specification;

    @Excel(name = "单位(必填)")
    @Length(max = 5, message = "单位长度不能超过5位")
    @NotNull
    private String packingUnit;

    @Excel(name = "有效期(yyyy/MM/dd)", databaseFormat = "yyyy/MM/dd")
    private Date expiryDate;

    @Excel(name = "价格(必填)")
    @NotNull
    private Float price;

    @Excel(name = "库存(必填)")
    @NotNull
    private Integer quantity;

    @Excel(name = "最小采购量(必填)")
    @NotNull
    private Integer minCount;

    @Excel(name = "中包装(必填)")
    @NotNull
    private Integer itemQuantity;

    @Excel(name = "件装量(必填)")
    @NotNull
    private Integer quantityPerPiece;

    @Excel(name = "条形码")
    private String barCode;

    @Excel(name = "是否上架(默认上架)")
    private Integer shelve;

    @Excel(name = "错误原因")
    private String reasonRorFailure;

}
